import Vue from 'vue'
import vuex from 'vuex'
Vue.use(vuex)
export default new vuex.Store({
  state: { editDialogVisible: false, editForm: {} },
  mutations: {
    editFormAdd(state, data) {
      state.editForm = data
      state.editDialogVisible = true
    },
    change(state, visible) {
      state.editDialogVisible = visible
    }
  }
})
